package ssm.service;

import ssm.domain.Permission;
import ssm.domain.Role;

import java.util.List;

public interface IRoleService {

    public List<Role> findAll() throws Exception;

    void findAll(Role role) throws Exception;

    Role findById(String id) throws Exception;

    void deleteRole(String id) throws Exception;

    List<Permission> findOtherPermissions(String roleId);

    Role findByRoleId(String roleId);

    void addPermissionToRole(String roleId, String[] permissionIds);
}
